Wait - free Test - and - Set ( Extended

نویسندگان

  • Yehuda Afek
  • Eli Gafni
  • John Tromp
چکیده

This paper presents an economical, randomized, wait-free construction of an n-process test-and-set bit from read write registers. The test-and-set shared object has two atomic operations, test&set, which atomically reads the bit and sets its value to 1, and the reset operation that resets the bit to 0. We identify two new complexity measures by which to evaluate wait-free algorithms: (a) The amount of randomness used, and (b) `Parallel-Time'|the maximum sequential depth of an execution (i.e. longest chain of operations that must precede each other). The previously best known algorithm for n-process test-and-set Her91] takes an expected (n 2) parallel time, and (n 4) sequential time per operation, and (n 2 log n) space per processor. In contrast, our direct implementation improves this on all counts by using O(log n) coin ips, O(log n) parallel time, O(n) sequential time, per operation, and O(n) space per processor. Thus the question on the diierence in the expected complexity of randomized constructions of concurrent objects from read/write registers is raised.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Free Extended BCK-Module

In this paper, by considering the notion of extended BCK-module, we define the concepts of free extended BCK-module, free object in category of extended BCK-modules and we state and prove some related results. Specially, we define the notion of idempotent extended BCK-module and we get some important results in free extended BCK-modules. In particular, in category of idempotent extended BCK-mod...

متن کامل

Randomized Wait-Free Naming

We present new distributed randomized naming protocols improving previous results in renaming and unique processor identity protocols. They are wait-free (which implies maximal fault-tolerance) and allow stronger adversaries. They also have low complexity. We give the rst wait-free protocol achieving optimal key space range. (This is impossible for deterministic wait-free methods, so we use ran...

متن کامل

Teacher Wait-Time and Learner Initiation: A Single Case Analysis

The prevailing pattern of classroom interaction is a tripartite exchange structure known as IRF (teacher initiation, student response, teacher follow-up/feedback; Sinclair & Coulthard, 1975). Although it has its own contributions to classroom discourse, it has been criticized on several grounds, particularly for affording minimum learner participation opportunities (Kasper, 2001). An alternativ...

متن کامل

A Randomized Algorithm for Two - ProcessWait - Free Test

The work of Herlihy and Plotkin on universal shared objects shows how to implement arbitrary wait-free read-modify-write objects from a bounded number of shared read/write bits. deterministically in a concurrent setting using only atomic shared variables. We present a simple randomized algorithm for 2-process wait-free test-and-set, implemented with two 4-valued single writer single reader atom...

متن کامل

Towards a Necessary and Sufficient Condition for Wait-free Synchronization (Extended Abstract)

We deene a class of shared objects called snapshot objects, and give a necessary and suucient condition for the existence of a wait-free implementation of such objects from atomic registers. Snapshot objects can be accessed by means of a read operation that returns the entire object state, or by a set of operations that do not return values. Our condition for the existence of a wait-free implem...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007